home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 001a / hostbbs2.zip / HOSTBBS.DOC < prev    next >
Text File  |  1991-11-24  |  21KB  |  513 lines

  1.   ■ On Sunday ■ November 24, 1991 ■ at 8:20 pm ■ from Bowie Md ■
  2.  
  3. Boyan 5.0 Hostbbs(2) script.
  4. by Lee Breeden.
  5.  
  6. This is a modified script of Justin's Host script.
  7.  
  8. The above line is what I use to say about this script, but now I
  9. have revolutionized the entire script. I didn't do it by myself
  10. either. Justin provided all the tools and they have been used to
  11. make this script what it is. Many of the ideas that are used have
  12. come from many different users that have expressed a need different
  13. than my own. I have tried to make a script so that is suitable for
  14. everyone, and professional enough to qualify for a small bbs.
  15.  
  16. Differences from the original host.bsc:
  17.  
  18.    1) Batch file transfers.
  19.    2) Number message system.
  20.    3) Private messages for users
  21.    4) Five different user levels
  22.    5) Modifications to commands (view files, list files, etc...)
  23.    6) Nice menus w/user levels
  24.    7) Now with file descriptions:
  25.    8) Sysop level can view both upload and download directories
  26.       - level 4.
  27.    9) Added a timer limit based upon user level. Logs user off
  28.       after time period (20 min. intervals) 20-100.
  29.   10) Main menu has a 2 minute in activity timer that runs logoff
  30.       after 2 minutes.
  31.   11) Personalized setup screens and quick config.
  32.   12) Has user questionnaire.
  33.   13) Has message quoting in the message area.
  34.   14) File display now shows file bytes and dates
  35.   15) Will provide scan of all uploaded files.
  36.   16) Has support for HS-Link protocol.
  37.  
  38. Legal stuff:
  39.  
  40. This script is offered AS IS with all its flaws, as an example of the
  41. many different options available with BOYAN script language. There are no
  42. warranties, express or implied. This is the efforts of my time, as well
  43. as others who have tried, tested, modified and corrected spelling <G> to
  44. make this what it is.
  45.  
  46. This should contain the following files:
  47.  
  48. hostbbs.bsc     - Host script
  49. hostbbs.doc     - The file and documentation
  50. hostset.bsc     - Set host to start and user specified time
  51. hostset1.bsc    - Start host at 9:50 PM an example of different
  52.                   uses of the program
  53. pcbtest.bat     - Batch file used with ZipLab
  54. ptest.cfg       - Sample file for ZipLab config
  55. readme          - Instructions for using ZipLab with hostbbs.
  56.  
  57. All of these files should come -AV and have the same date.
  58.  
  59. QUICK Start: Host MUST be in local mode to run the first time.
  60.  
  61. PLEASE NOTE: In the host.bam which is in operation while the host script
  62. is running, after a disconnect macro#7 will run. However, we don't want
  63. this to happen. We need the hostbbs.bsc file to continue to run, so the
  64. following modification of macro #7 is required.
  65.  
  66. \AT+[ your existing macro #7 here ]
  67.  
  68. This tells boyan to ignore macro #7 if a script is running. Macro #7
  69. will operate as normal while the script is not running, and it will
  70. operate the way that we need it to while the script is running.
  71.  
  72. Hit Alt-R highlight HostBBS.bsc and hit return. If you like what
  73. you see, then you will need to change your Alt-I macro setting to
  74. \sc[hostbbs] and then it will become active with the Alt-I key
  75. stroke.
  76.  
  77. PLEASE NOTE! Several commands within the script assumes that you are
  78. user number 41. User #41 can read & kill ALL messages, public or
  79. private. Offline running of the script assumes that your #41. This means
  80. that the sysop is the first user in the database, specifically user #41.
  81.  
  82. Using the script:
  83.  
  84. Copy the script into the script directory, and then run it (ALT-I).
  85. This assumes that you have changed the Alt-I macro to \sc[hostbbs]
  86. (if you tried version D, please delete the hostcnf.bsc). It will
  87. then check to see if a script file called hostcnf.bsc exists. If not
  88. it will run you thru a few set-up questions. It will create a
  89. welcome screen that has YOUR name and bbs name, and it will make one
  90. bulletin that I provided as a sample, and set the parameters for
  91. having file descriptions for you. This is a one time only setup.
  92.  
  93. Please note that this REQUIRES that you have the dos FIND.exe command.
  94. Please note that this REQUIRES that you have the dos SORT.exe command.
  95.  
  96. Once the setup is complete, the script will load. It starts by
  97. checking for messages available in the host message directory. They
  98. will be loaded into a file called msg.fil This does take a few
  99. seconds, but I have modified the curser to make it interesting
  100. <g>.....
  101.  
  102.  
  103. Offline:
  104.  
  105. Using the script off line (test mode) will allow the sysop to log
  106. onto the system without all the hassle. But you can enter the
  107. normal way by hitting <cr> or entering your password wrong.
  108.  
  109. Bulletins & Welcome:
  110.  
  111. I have provide two commands for bulletins. The two commands have
  112. different access levels for required reading. The default bulletin
  113. file is called bulletin.fil and the forced all to read bulletin.fi1
  114. if exists, will be read by ALL.
  115.  
  116. Message Area:
  117.  
  118. This version is a total re-write of the message area. All of the
  119. commands have been improved upon. It offers private messages, where
  120. both the sender and the receiver can receive messages. Sysop (user 41)
  121. can read and delete all messages. If you have message numbers existing,
  122. you might want to change the names of the files, so that they are three
  123. digits long having the "#" after the number and ending in ".msg". ie:
  124. 123#.msg The message setup should pickup the numbers and add them to
  125. the list. Sysop Menu:
  126.  
  127. I have added several commands to the menu. All of the commands that
  128. involve "edit" require the use of an editor. These commands use the
  129. defined editor in the Boyan config area. Qedit works great for
  130. this. Most of the commands now return you to the Menu display with
  131. the script running. Below is a brief description of the commands
  132. that have been added.
  133.  
  134.     Add:
  135.  
  136.        Added an add time command to the sysop menu, so that the
  137.        sysop can add additional time for a user. Adds 20 minutes
  138.        EVERY time the "A" is hit.
  139.  
  140.     Edit host: Sysop menu - "E"dit
  141.  
  142.        Editing the host script from within the host script is a very
  143.        useful thing if you like to make changes to it. This can be
  144.        done from within the script while the script is running and
  145.        returns you to the script.
  146.  
  147.        However, editing the script does have some limitations. You
  148.        cannot change the script to the point that you are removing
  149.        lines from blocks. This will result in the script locking up
  150.        when it reloads.
  151.  
  152.     File Areas: Sysop menu - "D"escriptions
  153.  
  154.        If you have selected to have file descriptions for the files,
  155.        then you will find out that this requires maintenance. By
  156.        this I mean that it becomes necessary to delete files, and
  157.        file descriptions from the display. The "D" option will
  158.        bring up the file description directory and any file name
  159.        that begins with fil*.*
  160.  
  161.     File Manager: Sysop menu - "F"ile
  162.  
  163.        The only change that I have made to this command is to change the
  164.        name to "F"ile I did want to point out some of the useful things
  165.        that you can do with the file manager. If someone logs on and you
  166.        would like them to get a batch of files from you, you could pull up
  167.        the sysop menu, then "F" for file manager. Go to the host
  168.        directory, and then tag the files to send in batch mode. Hit U and
  169.        Z, and when the transfer is finished, the user will be returned to
  170.        the menu with the script running.
  171.  
  172.     Manual Macro: Sysop menu - "M"anual Macros
  173.  
  174.        This is the exact same command that you have from the terminal
  175.        mode, the unique difference is that the changes that you make with
  176.        the macros are directly related to the commands in the script.
  177.        ie: there is a user, that you would like to have access to another
  178.        directory. The variable that holds the path for the host dir is
  179.        %V5. So you would like to have access to the upload directory.
  180.        Use the Manual Macro command, and then change the path
  181.        \SV5[e:\uploads\]
  182.        Now all related commands for using the host directory will be in
  183.        the uploads directory. Please note that doing something like this
  184.        will keep the variable changed to the value that you have selected
  185.        until you exit the host script.
  186.  
  187.      Screen Displays & Messages: Sysop menu - "M"essages
  188.  
  189.        The "Welcome", "Bulletin", and "Messages" are all located in
  190.        the host message directory. This option will display all of
  191.        the files that are located in the host directory *.*.
  192.  
  193. User Levels:
  194.  
  195.     Access level is currently set to one. If you have some reason
  196.     to have this at zero, then you would need to change line 160 of
  197.     the script. The "0" command is still there, just change the
  198.     double slashes around.
  199.  
  200.            |GetName&PW
  201.            \SV0[] \SVP[] \SVL[1] \SVE[] { \\ user level set to 1
  202.            \\SV0[] \SVP[] \SVL[0] \SVE[] { \\ user level set at 0
  203.  
  204.     Levels Access:
  205.  
  206.         Level "0" - currently not used, but it is menu supported.
  207.         Bulletins and Welcome displayed. Access is restricted to
  208.         Uploads only and allows user to view files.
  209.  
  210.         Level "1" - Currently entry level. User can upload and
  211.         download files. Restricted file display to host directory
  212.         ZIPs only.
  213.  
  214.         Level "2" - Allows all of the above but allows display of
  215.         all of Uploads and the host file directories in zip format.
  216.  
  217.         Level "3" - Displays all file directories upload,
  218.         download, and host, in *.* format. Allows wild card file
  219.         transfers. User can shut down host mode but is restricted
  220.         from jump to DOS.
  221.  
  222.         Level "4" - Sysop level: all commands are active. Same as
  223.         number 3 but this is the only level that you can shell to
  224.         dos.
  225.  
  226.         When you reach user level 2 or above, the screen display
  227.         will have many options that the user might not be able to
  228.         perform. This is due to access restrictions. If they try
  229.         to access one of these commands, then it will display
  230.         "command not available".
  231.  
  232.  
  233. Time Limits:
  234.  
  235.         Several time limits are in this version. The main menu will
  236.         time out and hang up on caller if no activity is happening
  237.         after 2 minutes. This is the only area that this will
  238.         happen in.
  239.  
  240.             |MenuDispatch
  241.             \iw-[ \gb[warning]]
  242.  
  243.         To disable this, double slash this line in the script.
  244.  
  245.         Add a time limit feature that increases as the user access
  246.         level increases. 20 min. increments.
  247.  
  248.             \IVL+0[\SVK[20]]
  249.             \IVL+1[\SVK[40]]
  250.             \IVL+2[\SVK[60]]
  251.             \IVL+3[\SVK[80]]
  252.             \IVL+4[\SVK[100]]
  253.  
  254.         These are located in the StartTime block. You can change
  255.         them if you would like, but the time clock might not operate
  256.         properly if the time limit totally exceeds 120 minutes.
  257.  
  258.  
  259. Un-documented commands: (Inactive commands)
  260.  
  261.     There are commands in the host script that have been tested, but
  262.     not active. The commands are listed below.
  263.  
  264.         1. Shut down host script at specified time. In the host
  265.         |WaitForCall block, the first command can be changed to
  266.         activate the command to shut down the host script at after a
  267.         specified time. The \TO[255] command needs to be changed to
  268.         \TO[254]. This will keep the block cycling.
  269.  
  270.             |WaitForCall
  271.             \II+%HR,06[\GB[*wrapup]]
  272.             \DM1[ ╔═══════════════════════════════════════╗ ]
  273.             \DM2[ ║ Host Mode Waiting for RING...         ║ ]
  274.             \DM3[ ╠═══════════════════════════════════════╣ ]
  275.             \DM4[ ║ Press <Tab> for Sysop Menu.           ║ ]
  276.             \DM5[ ║ Press <Esc> to quit Host Mode.        ║ ]
  277.             \DM6[ ╚═══════════════════════════════════════╝ ]
  278.             \TO[254] \WF[RING] \iw-[\gb[cycle]] \\ Wait for "RING"
  279.  
  280.         2. The first command in the above block is set for 6:00AM and if
  281.          you have the 255 changed to 254, the script will stop at about
  282.          6:00AM. If you want it to stop at another time, you could
  283.          change the 06 and any hour appropriate.
  284.  
  285. Closing:
  286.  
  287. I am open to suggestions and criticism as always, but if you don't
  288. have something nice to say, please do so in a private message.
  289. Negative comments, give a bad reflection on the program, and I don't
  290. feel that the program deserves that. I welcome any suggestion and
  291. criticism, thanks. If the message is posted in the beta conference,
  292. go for it, public or private, its open to all.
  293.  
  294. If you have any problems, or difficulties, please let me know. I
  295. can be found on almost any Boyan conference that you can find. I
  296. currently host four different Boyan conferences:
  297.  
  298.     ILink, Rime, SmartNet, and U`NInet.
  299.  
  300. Thanks,
  301.  
  302. Lee Breeden
  303. Boyan Support
  304.  
  305. Program history:
  306.  
  307.   ■ On Sunday ■ August 4, 1991 ■ at 4:41 pm ■ from Bowie Md ■
  308.  
  309. Latest script only changes the connection block and corrected the
  310. spelling error in the main menu.
  311.  
  312.   ■ On Sunday ■ August 18, 1991 ■ at 8:59 pm ■ from Bowie Md ■
  313.  
  314. Latest version corrects some addition with the message numbers and
  315. private messages are correctly displayed (Irving Kind).
  316.  
  317. Fixed usage log where messages were recorded as uploads (John Kopp).
  318.  
  319. Allows user and sysop to delete private messages on line.
  320.  
  321. Added file descriptions (inspired by Paul Buerkle).
  322.  
  323.   ■ On Sunday ■ September 1, 1991 ■ at 2:36 pm ■ from Bowie Md ■
  324.  
  325. Re-wrote the message area. The changes to this area have been
  326. inspired largely by Dennis Tuchler, (it seems that he wasn't
  327. satisfied with the private message system that I wrote <grin>...).
  328. I wish to thank Dennis, because if it weren't for this challenge I
  329. would not have racked my brain for hours on end to improve this
  330. area. In the process, I came up with several routines that have
  331. tremendously improved the entire process of handling many areas of
  332. the script.
  333.  
  334. Removed all ascii uploads for display.
  335.  
  336. Added in-activity timeout logoff.
  337.  
  338. Added user level time restrictions.
  339.  
  340. Added user set-up for screen displays to customize the program
  341. (Keith Rogers).
  342.  
  343.   ■ On Saturday ■ September 7, 1991 ■ at 2:59 pm ■ from Bowie Md ■
  344.  
  345. Modified some of the file prompts, corrected some spelling errors, and
  346. fixed the local sysop logon block to handle a single name logon (Dave
  347. Muscato).
  348.  
  349. Added .zip commands for keyboard entry, where the user didn't enter ".zip"
  350. as part of the file name.
  351.  
  352.   ■ On Sunday ■ September 8, 1991 ■ at 10:15 pm ■ from Bowie Md ■
  353.  
  354. Added Key stack commands for file transfers!
  355.  
  356. D;B;Boyan5a;Boyan5B{ Go for it!
  357.  
  358. Corrected problem with path in temp.msg file in saving messages.
  359.  
  360. Key stack commands for loging on:
  361. I never knew this before today, but you can also use Lee
  362. Breeden;password to logon with, this was something that Justin had
  363. in the script, that I never knew was available to me, until I
  364. went to modify the script to do so.
  365.  
  366.   ■ On Friday ■ September 13, 1991 ■ at 8:36 pm ■ from Bowie Md ■
  367.  
  368. Modified password prompt so that it doesn't make the user start from
  369. scratch unless the password fails on the second attempt.
  370.  
  371. Modified the bulletin area so that it is easier control who reads
  372. the bulletins.
  373.  
  374. I think that I have fixed the bugs in the messages (Dave Muscato,
  375. & Dennis Tuchler).
  376.  
  377. Changed the |find command so that it is compatible with dos 3.1 and
  378. up. Please note the bytes in the command line might need to be
  379. changed in your version. I will try to make this part of the setup
  380. to ask the user what dos version they are running, and if they are
  381. running 4dos. (Paul Buerkle).
  382.  
  383. Working on changing the sysop menu to send out busy signal while doing
  384. certain functions. (Keith Rogers)
  385.  
  386. Corrected some problems that exist with dos, and the 127 characters
  387. per line limit. (Dave Muscato).
  388.  
  389. Please read the Quick start area about problems with macro #7 that
  390. Justin has written into the host.bam.
  391.  
  392. Added option to allow for file descriptions to be flagged as sysop
  393. only. A user with level 3 or better can read the files in the dir
  394. option.
  395.  
  396. Modified the message sort to support dos 3.?? (Paul Buerkle)
  397.  
  398.   ■ On Wednesday ■ September 18, 1991 ■ at 8:37 pm ■ from Bowie Md ■
  399.  
  400. Made some changes to the menu to correct spelling errors.
  401. Modified script so that the file closes after the \GV variable runs.
  402. Modified script to add longer file descriptions (Keith Rogers)
  403.  
  404. Changed file view block to allow one to view contents from within a zip
  405. file. This command seems to be very riskie, and I might not leave it.
  406. Anyone have some feedback, I'm listening. The reason that I say that it
  407. is riskie, is that the command has to allow for pkunzip to unzip files,
  408. and then delete them. The problems exist of, where to place the files
  409. that are being unzipped and where can one delete them. Then the other
  410. problem is that if the file already exist the thing will hang unless I use
  411. the overwrite command...... Maybe restricted access to the command. 2 or
  412. above? 3-4 maybe..... (Keith Rogers inspired).
  413.  
  414.   ■ On Thursday ■ September 19, 1991 ■ at 7:06 pm ■ from Bowie Md ■
  415.  
  416. Changed the user access to the zip command to be level 2 and above to see
  417. the files in the directory. Similar to the file view commands. Level 2
  418. and below can not see the listing of files in the directory, they would
  419. have to remember the file name similar to any bbs.
  420.  
  421. Changed comment to sysop function to be part of the messages that are
  422. entered.
  423.  
  424. Corrected some hangups that existed in the message display, corrected the
  425. share volition, and fix the endless loop in the setting up messages.
  426. Fixed the problem with messages left to sysop, where sysop got a blank
  427. menu display.
  428.  
  429. Does anyone have any comments on having the modem go off hook when in
  430. local mode, or having modem go off hook when sysop menu is called when no
  431. carrier is detected.
  432.  
  433.   ■ On Tuesday ■ September 24, 1991 ■ at 9:39 pm ■ from Bowie Md ■
  434.  
  435. You probably won't notice many changes in this version, I tried to improve
  436. what was here and to make the corrections to the problems as they are
  437. reported. PLEASE note that you will need to rename any messages that you
  438. have to this format. message_number#.ms(ext- msg msp) 101#.msg. I had
  439. to make this change to get rid of the problem with dos versions.
  440.  
  441.   ■ On Friday ■ September 27, 1991 ■ at 9:48 pm ■ from Bowie Md ■
  442.  
  443. This version has message Quoting! I changed some things around to make the
  444. messages a little faster. I hope that this doesn't foul anything up. Let
  445. me know if you have any problems.
  446.  
  447. Corrected some things that Dave Muscato pointed out. -thanks -Lb
  448.  
  449.   ■ On Sunday ■ September 29, 1991 ■ at 10:13 pm ■ from Bowie Md ■
  450.  
  451. Mostly trying to get things cleaned up. Made corrections to any problem
  452. list that I have. (Dave, Paul, Mike)
  453.  
  454.   ■ On Thursday ■ October 3, 1991 ■ at 9:37 pm ■ from Bowie Md ■
  455.  
  456. Changed some things that Pete Cleland had mentioned to me.
  457. Fixed the problem in the sysop menu.
  458.  
  459. Got rid of the NO Message display in the messages.
  460. Change usage message log for comment to sysop.
  461. Changed some of the commands in the message number blocks to make them
  462. faster.
  463. Changed the starting message numbers.
  464. Edited parts of the wrapup block and the init block.
  465.  
  466.   ■ On Friday ■ October 4, 1991 ■ at 9:46 pm ■ from Bowie Md ■
  467.  
  468. Change a few minor things in the script. I added the sort command to all
  469. of the file listings. This should fix the messages and the file display
  470. to be in numeric order. (Paul Buerkle)
  471. Change a few things in the host setup and wrapup block (more things).
  472.  
  473. And for Dave Muscato, if you look in the wrapup block there is a command
  474. that sets the \AL[7] that you might want to get rid of.
  475.  
  476.   ■ On Thursday ■ October 10, 1991 ■ at 11:38 pm ■ from Bowie Md ■
  477.  
  478. Corrected some problems in the message area, where some of the variable
  479. commands were causing conflicts.
  480.  
  481. Added a manual macro command to the sysop menu. This is very handy for
  482. changing user directory. \SV5[%D:] \SV5[%U:]
  483.  
  484. You can do some testing in this area.
  485.  
  486.   ■ On Tuesday ■ October 15, 1991 ■ at 11:38 pm ■ from Bowie Md ■
  487.  
  488. Changed the download block so that it checks for a file before attempting
  489. to download it......
  490.  
  491.   ■ On Sunday ■ October 20, 1991 ■ at 7:51 pm ■ from Bowie Md ■
  492.  
  493.  Corrected problems with the different user level in the file areas. (Dave
  494. Muscato).
  495. Changed the WaitForCall block so that it changes the port speed after
  496. disconnecting. Also modified the connection display to provide user with
  497. the port speed settings while on line.
  498.  
  499. ---
  500.  
  501. There have been many others who have used the script that have
  502. provide suggestions and criticism. Sometimes I don't respond
  503. positive to these but I do listen. Thanks for all the help and keep
  504. the suggestions coming.
  505.  
  506. ~~~
  507. Added file listing to display bytes and dates in them.  (Keith Rogers)
  508. Added hslink protocol.
  509. Added ZipLab support.
  510.  
  511.   ■ On Sunday ■ November 24, 1991 ■ at 8:38 pm ■ from Bowie Md ■
  512.  
  513.